package com.smkj.kaoqin.modules.student.pojo.db;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学生表
 * </p>
 *
 * @author yztyear
 * @since 2024-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("student")
@Schema(description = "学生表")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "学生学号")
    @TableId(value = "student_nub", type = IdType.AUTO)
    private Long studentNub;

    @Schema(description = "关联班级id")
    private Long classId;

    @Schema(description = "年级")
    private Long grade;

    @Schema(description = "专业")
    private String major;

    @Schema(description = "学生姓名")
    private String studentName;

}
